home *** CD-ROM | disk | FTP | other *** search
/ POINT Software Programming / PPROG1.ISO / pascal / swag / dos.swg / 0004_Cold Boot in BASM.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1993-05-28  |  923 b   |  32 lines

  1. # Der User Chris Obee@1:234/26 musste am Donnerstag, dem 22.04.93 um 12:09 Uhr
  2. # in der Area PASCAL folgendes seiner Tastatur antun................
  3.  
  4. >     I would like to write a program in pascal that will accomplish an
  5. > complete system reboot.  The moral equivilent of pressing the big red
  6. > button.  A program that simulates the Cntr-Alt-Del sequence is not
  7. > sufficient.  Anyone who can advise me on if this is possible of not, will
  8. > receive many thanks.
  9. >
  10. > TTFN:  chris
  11.  
  12. That's not as hard as it might seem to be at first glance:
  13.  
  14. program coldboot;
  15. begin
  16.  memw[0:$0472] := 0;
  17.  asm
  18.   mov ax,$FFFF
  19.   mov ds,ax
  20.   jmp far ptr ds:0
  21.  end;
  22. end.
  23.  
  24. Hope you understand the assembler code... :-)
  25.  
  26.  
  27. Michael : [NICO] : [Whoo haz broquen mei brain-waschaer?]
  28. ~~~~~~~~~~~~~~~~
  29.  
  30. --- CrossPoint v2.1
  31.  * Origin: Send me ALL your money - IMMEDIATELY!! (2:2401/411.2)
  32.